﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ServBus.ListForm2010.Setup.SubForms
{
    public partial class WelcomeForm : BaseStepForm
    {
        public WelcomeForm()
        {
            InitializeComponent();
        }

        public WelcomeForm(BaseStepForm previous, SetupForm setupForm)
            : base(previous, setupForm)
        {
            InitializeComponent();
        }

        public override string Title
        {
            get { return Properties.Resources.WelcomeTitle; }
        }

        public override string SubTitle
        {
            get { return Properties.Resources.WelcomeSubTitle; }
        }

        public override void Init()
        {
            this.labelWelcomeText.Text = Properties.Resources.WelcomeText;
            this.labelWarning.Text = Properties.Resources.WelcomeWarning;
            this.ParentSetupForm.PrevButton.Enabled = false;
            this.ParentSetupForm.NextButton.Enabled = true;
        }

        public override BaseStepForm CreateNextStep()
        {
            return new EULAForm(this, this.ParentSetupForm);
        }
    }
}
